package com.example.xd.javatest.factory_test.abstract_factory;

/**
 * @auther XuDan on 2020/6/16.
 */
public interface Engine {
    void run();

    void start();
}

class LuxuryEngine implements Engine {

    @Override
    public void run() {
        System.out.println("跑得快");
    }

    @Override
    public void start() {
        System.out.println("启动快");

    }
}

class LowEngine implements Engine {

    @Override
    public void run() {
        System.out.println("跑得慢");
    }

    @Override
    public void start() {
        System.out.println("跑得慢");
    }
}
